import request from '@/utils/request'

// 查询潜在用户列表
export function listProspects(query) {
  return request({
    url: '/teacher/prospects/list',
    method: 'get',
    params: query
  })
}

// 查询潜在用户详细
export function getProspects(id) {
  return request({
    url: '/teacher/prospects/' + id,
    method: 'get'
  })
}

// 新增潜在用户
export function addProspects(data) {
  return request({
    url: '/teacher/prospects',
    method: 'post',
    data: data
  })
}

// 修改潜在用户
export function updateProspects(data) {
  return request({
    url: '/teacher/prospects',
    method: 'put',
    data: data
  })
}

// 删除潜在用户
export function delProspects(id) {
  return request({
    url: '/teacher/prospects/' + id,
    method: 'delete'
  })
}
